using System;
using System.Collections.Generic;
using System.Text;
using System.Windows.Forms;
using System.IO;

namespace DocManager
{
    public class ClsDBAccess
    {
        public static IDBAgent CreateDBAgent()
        {
            string path = Path.Combine(Application.StartupPath, "docdb.mdb");
            string constr = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=\"" + path + "\"";

            AccessAgent agent = new AccessAgent(constr);
            return agent;
        }
    }
}
